<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp"%>
<script type="text/javascript">

	$(function(){
		if("${reload}"=="yes"){
			$("#divBlogList").load("taBlog.htm?family=${family}");	
		}
	});

	//日志信息页面
	function taBlog() {
		$("#headBlog").load("taBlog.htm?family=${family}");
	}
	
	//评论阅读日志
	function enterComment(id) {
		$.ajax({
			type : "GET",
			url : "enterBlogComment.htm",
			data : "id=" + id,
			success : function(data) {
				$("#divBlogList").html(data);
			}
		});
	}

	function tabFamilyBlog(tabFeedType, tab) {
		$("#newNews1").attr("class", "");
		$("#newNews2").attr("class", "");
		$("#newNews3").attr("class", "");
		$("#newNews" + tab).attr("class", "h_newNewsHover");
		$("#divBlogList").load("taBlog.htm?family=${family}&familyType=" + tabFeedType);
	}
	
	//隐藏浮层
	function hideDeleteDiv() {
		//$.unblockUI();
		$('.h_delete').hide();
	}
</script>

<div class="h_main2">
	<div class="h_data">
		<h2 id="tips">
			<img src="images/home_images/ico28.png" alt="日志" />日志
		</h2>
		<div id="headBlog">
			<div class="h_newNews">
				<ul>
					<li id="newNews1" onclick="tabFamilyBlog('myFamilyType',1);"
						class="h_newNewsHover"><a>TA家的日志</a></li>
					<li id="newNews3" onclick="tabFamilyBlog('friendFamilyType',3);"><a>TA家邻居的日志</a>
					</li>
					<div class="clear"></div>
				</ul>
				<div class="clear"></div>
			</div>
			
			<div id="divBlogList"></div>
		</div>
	</div>
</div>
